﻿@model PasswordRecoveryConfirmModel
@{
    Layout = "_ColumnsOne";

    //title
    Html.AddTitleParts(T("PageTitle.PasswordRecovery").Text);
}
@using Grand.Web.Models.Customer;
<div class="page password-recovery-page">
        <h2 class="generalTitle">@T("Account.PasswordRecovery")</h2>
        @if (!String.IsNullOrEmpty(Model.Result))
        {
            <div class="result">
                <div class="result card bg-info p-3 text-white">@Model.Result</div>
            </div>
        }
        @if (!Model.DisablePasswordChanging)
        {
            <form asp-route="PasswordRecoveryConfirm" asp-route-token="@Context.Request.Query["token"]" asp-route-email="@Context.Request.Query["email"]" method="post">
                <div asp-validation-summary="ModelOnly" class="message-error"></div>
                    <div class="form-fields">
                        <div class="inputs">
                            <label asp-for="NewPassword" class="col-form-label">@T("Account.PasswordRecovery.NewPassword"):</label>
                            <input asp-for="NewPassword" class="form-control"/>
                            <span asp-validation-for="NewPassword"></span>
                        </div>
                        <div class="inputs">
                            <label asp-for="ConfirmNewPassword"  class="col-form-label">@T("Account.PasswordRecovery.ConfirmNewPassword"):</label>
                            <input asp-for="ConfirmNewPassword" class="form-control"/>
                            <span asp-validation-for="ConfirmNewPassword"></span>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-12 text-xs-center btn-group-sm my-3">
                            <input type="submit" name="set-password" class="btn btn-secondary new-password-button" value="@T("Account.PasswordRecovery.ChangePasswordButton")" />
                        </div>
                    </div>
            </form>
        }
</div>
